#ifndef __SOCS_POOL6_H__
#define __SOCS_POOL6_H__

#include <linux/types.h>
#include <linux/in6.h>
#include "socs/comm/types.h"

struct pool6_entry {
	struct ipv6_prefix prefix6;
	struct rb_node tree_hook;
};

struct pool6_table {
	unsigned int pool_num;
	struct rb_root pool_tree;
};

int pool6_init(void);

void pool6_destroy(void);

int pool6_operat(struct arguments *args, char *buf);

int is_prefix6(struct in6_addr *address);

#endif
